$("#logins").click(function (e) {
    var username=$(".username").val();
    var password=$(".password").val();
    $.ajax({
        type:'POST',
        url:'http://localhost:8080/last/logins',
        data:{"username":username,"password":password},
        success:function (data) {
            $.cookie("lastname",data.name);
            console.log($.cookie("name"));
            window.location.href="http://localhost:8080/last/index";
        }
    });
})



// var vm=new Vue({
//     el:".form",
//     data(){
//         return{
//             logins:{}
//         }
//     }
// })